package com.googlecode.textish.format;

import java.io.IOException;
import java.io.Writer;

import com.googlecode.textish.parser.ContainerTokenDecorator;

/**
 * Implementation of {@link IFormatter} with empty methods.
 * 
 * @author cgdavies
 * 
 */
public abstract class AbstractFormatter implements IFormatter {

	public boolean afterDocument(CharSequence context, ContainerTokenDecorator document, Writer output)
			throws IOException {
		return true;
	}

	public boolean afterLine(CharSequence context, ContainerTokenDecorator line, Writer output) throws IOException {
		return true;
	}

	public boolean afterParagraph(CharSequence context, ContainerTokenDecorator paragraph, Writer output)
			throws IOException {
		return true;
	}

	public boolean afterWord(CharSequence context, ContainerTokenDecorator word, Writer output) throws IOException {
		return true;
	}

	public boolean beforeDocument(CharSequence context, ContainerTokenDecorator document, Writer output)
			throws IOException {
		return true;
	}

	public boolean beforeLine(CharSequence context, ContainerTokenDecorator line, Writer output) throws IOException {
		return true;
	}

	public boolean beforeParagraph(CharSequence context, ContainerTokenDecorator paragraph, Writer output)
			throws IOException {
		return true;
	}

	public boolean beforeWord(CharSequence context, ContainerTokenDecorator word, Writer output) throws IOException {
		return true;
	}

}
